<?php
	session_start();
	mysql_connect("localhost", "sapmenet_admin", "a1s2d3f4g5h6j7") or die ("Problem with datebase");
	mysql_select_db("sapmenet_users");
	$del = $_POST['delId'];
	$me = $_SESSION['JID'];
	$delete = mysql_query("DELETE FROM `friendships` WHERE `friendID` = {$del} AND `userID` = {$me}");
	$deleteagain = mysql_query("DELETE FROM `friendships` WHERE `friendID` = {$me} AND `userID` = {$del}");
?>